package com.hyj.serve.manage.configure.web;

import com.alibaba.fastjson.JSON;
import org.springframework.core.convert.converter.Converter;

/**
 * json转换器
 * 处理请求中json字符串转JSON对象
 * @author msi_hyj
 *
 */
public class FastjsonConverter implements Converter<String, JSON>{

	@Override
	public JSON convert(String source) {
		return (JSON) JSON.parse(source);
	}
}
